<template>
  <div class="vx-agree-container">
    <div class="agreement-title">{{ title }}</div>
    <div class="agreement-body">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'vx-agree',
  props: {
    title: {
      type: String,
      default: '协议标题',
    },
  },
};
</script>

<style lang="scss">
.vx-agree-container {
  .agreement-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 40px;
    text-align: center;
  }
  .agreement-body {
    border: 1px solid #ebeef5;
    padding: 20px 18px;
    p {
      margin-bottom: 10px;
      color: #666;
      font-size: 14px;
    }
  }
}
</style>
